<template>
  <div class="ContradictionDet">
    <!-- 顶部页面标题栏 -->
    <!-- <div class="header">
      <div class="backIcon" @click="back">
        <img slot="icon" src="../../assets/transfer/backIcon.png" class="iconImage" />
      </div>
      <div class="theme">公告详情</div>
    </div>-->

    <!-- 页面主体信息区域 -->
    <div class="outermostMargin">
      <div class="msgBox">
        <div class="textBox">
          <div class="titles">
            <span class="mainTitle">{{detData.title || detData.name}}</span>
            <span class="time">{{detData.createTime}}</span>
          </div>
        </div>
        <!-- <div class="imgBox" :style="'background-image: url('+picUrl(detData.url)+')'"></div> -->
        <div class="summary">
          <span v-html="detData.description || detData.content || detData.detail"></span>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: "ContradictionDet",
  data() {
    return {
      det: {},
      detData: ""
    };
  },
  created() {
    this.detData = this.$route.query.detData;
    console.log("Contradiction det", this.detData);
  },
  methods: {
    back() {
      this.$router.isBack = true; // 将返回状态置为触发态，以边路由监听触发返回动画
      this.$router.back(); // 路由向后退一步
    }
  }
};
</script>
<style lang="scss" scoped>
@import "~@/smobile.scss";
.ContradictionDet {
  .header {
    padding: $sm-spaceing-block-sm 0 $sm-spaceing-block-sm 0;

    position: absolute;
    width: $sm-img-per-max;
    height: 21px;
    background: $sm-bg-color;
    z-index: 2;

    display: flex;
    flex-direction: row nowrap;
    justify-content: flex-start;
    .backIcon {
      position: absolute;
      white-space: nowrap;
      height: $sm-icon-px-md;
      z-index: 4;

      .iconImage {
        height: $sm-icon-px-md;
        width: $sm-icon-px-md;
        transform: rotateY(180deg);
      }
    }

    .theme {
      position: absolute;
      font-weight: bold;
      width: $sm-img-per-max;
      text-align: center;
      white-space: nowrap;
      z-index: 3;
    }
  }

  .outermostMargin {
    padding: $sm-spaceing-block-base;
    background: $sm-bg-color;
    color: $sm-text-color;
    font-size: $sm-font-size-lg;

    overflow: auto;
    height: 100vh;
    // margin: 41px 0 0 0;

    .msgBox {
      display: flex;
      flex-direction: column;
      justify-content: flex-start;

      .textBox {
        .titles {
          display: flex;
          flex-direction: column;
          margin: $sm-spacing-col-xl 0 0 0;

          .mainTitle {
            font-size: $sm-font-size-title;
            font-weight: bold;
            color: $sm-color-title;
            text-align: center;
          }

          .time {
            padding: $sm-spacing-col-sm 0 $sm-spacing-col-sm 0;
            color: $sm-text-color-grey;
            font-size: $sm-font-size-lg;
            text-align: center;
          }
        }
      }
      // .imgBox {
      //   width: $sm-img-per-max;
      //   height: $sm-img-size-maxp;
      //   background-repeat: no-repeat;
      //   background-size: cover;
      // }
      .summary {
        margin: $sm-spacing-col-lg 0 $sm-spacing-col-lg 0;
        color: $sm-color-title;
      }
    }
  }
}
</style>